const { createProxyMiddleware }=require('http-proxy-middleware');
console.log("Proxy执行了");
module.exports=function(app){
    app.use("/api",createProxyMiddleware({
        target:"http://jacklv.cn:3000",
        changeOrigin:true,
        pathRewrite:{
            "^/api":""
        }
       
    }))
    console.log("Proxy执行了");
}